import request from '@/utils/request'

// 查询补助申请记录列表
export function listAppSubsidy(query) {
  return request({
    url: '/business/appSubsidy/list',
    method: 'get',
    params: query
  })
}
export function listAppSubsidyByMiniUserId(query) {
  return request({
    url: '/business/appSubsidy/listAppSubsidyByMiniUserId',
    method: 'get',
    params: query
  })
}

// 查询补助申请记录详细
export function getAppSubsidy(id) {
  return request({
    url: '/business/appSubsidy/' + id,
    method: 'get'
  })
}

// 新增补助申请记录
export function addAppSubsidy(data) {
  return request({
    url: '/business/appSubsidy',
    method: 'post',
    data: data
  })
}

// 修改补助申请记录
export function updateAppSubsidy(data) {
  return request({
    url: '/business/appSubsidy',
    method: 'put',
    data: data
  })
}

// 删除补助申请记录
export function delAppSubsidy(id) {
  return request({
    url: '/business/appSubsidy/' + id,
    method: 'delete'
  })
}

//二级工会审核
export function auditSecondLaborUnion(data) {
  return request({
    url: '/business/appSubsidy/auditSecondLaborUnion',
    method: 'post',
    data: data
  })
}

//校医院审核
export function auditSchoolInfirmary(data) {
  return request({
    url: '/business/appSubsidy/auditSchoolInfirmary',
    method: 'post',
    data: data
  })
}

//基金管委会审核
export function auditFundCommittee(data) {
  return request({
    url: '/business/appSubsidy/auditFundCommittee',
    method: 'post',
    data: data
  })
}
